import request from "@/utils/request";

export function addSchoolClass(data) {
  return request({
    url: `/core/schoolclass/add`,
    method: "post",
    data,
  });
}
// 获取班级列表
export function getSchoolClassList(params) {
  return request({
    url: `/core/schoolclass/list`,
    method: "get",
    params,
  });
}
// 删除班级
export function deleteClassByIds(ids) {
  return request({
    url: `/core/schoolclass/delete/${ids}`,
    method: "delete",
  });
}
// 修改班级
export function editSchoolClass(data) {
  return request({
    url: `/core/schoolclass/edit`,
    method: "put",
    data,
  });
}
// 添加班级学生
export function addClassStudent(data) {
  return request({
    url: `/core/schoolclass/insertClass`,
    method: "post",
    data,
  });
}
// 删除班级学生
export function delClassStudent(data) {
  return request({
    url: `/core/schoolclass/deleteClass`,
    method: "delete",
    data,
  });
}
// 查询所有学生
export function getClassStuList(params) {
  return request({
    url: `/core/schoolclass/classList`,
    method: "get",
    params,
  });
}
// 查询班级学生
export function getStuByClass(params) {
  return request({
    url: `/core/schoolclass/theClassList`,
    method: "get",
    params,
  });
}
